#---------以上为模拟打包资源产物过程----------------
echo "开始打包.deb"

#BUILD_TIME=$(date +%Y%m%d-%H%M%S)
BUILD_TIME = "2025"
# 打包为.deb格式
fpm \
  -f \
  -s dir \
  -t deb \
  -C ~/my-electron-app/dist/linux-unpacked \
  --package ~/my-electron-app/out/yourapp_1.0.0_all_${BUILD_TIME}.deb \
  --name yourapp \
  --license agpl3 \
  --version 1.0.0 \
  --category  Utility \
  --architecture all \
  --description "智友rpa" \
  --url "https://rpa.yonyoucloud.com" \
  --maintainer "liweiaw <liweiaw@yonyou.com>" \
  --before-install before_install.sh  \
  --after-install after_install.sh \
  --after-remove after_remove.sh \
  --prefix /opt 

echo "打包.deb成功"